public class demo01 {
    public static void main(String[] args) {
        //跑步锻炼
        int week=6;
        int sum=0;
        for (int year = 2000; year <= 2020; year++) {
            int[] arr={0,31,28,31,30,31,30,31,31,30,31,30,31};
            if((year%4==0&&year%100!=0)||(year%400==0)){
                arr[2]+=1;
            }
            for (int month = 1; month <=12 ; month++) {
                for (int day = 1; day <= arr[month]; day++) {
                    if(week==1||day==1){
                        sum+=2;
                    }else {
                        sum++;
                    }
                    if(year==2020&&month==10&&day==1) {
                        System.out.println(sum);
                        return;
                    }
                    week++;
                    if(week>7){
                        week%=7;
                    }
                }
            }
        }
    }
}
